import request from '@/utils/request'

// 附件
const URL_PREFIX = '/file'

export function getUploadUrl() {
  return URL_PREFIX + '/upload'
}

export function uploadFile(data) {
  return request({
    url: URL_PREFIX + '/upload',
    method: 'POST',
    data
  })
}
